package com.itbaizhan.dao;

import com.itbaizhan.domain.Student;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

/*使用Spring实现IOC
* 注解实现IOC
* @Component注解配置bean的默认id是首字母小写的类名。也可以手动设置bean的id值。*/
//@Component("studentDao")
@Repository("studentDao")
public class StudentDaoImpl implements StudentDao{

    @Override
    public Student findById(int id) {

        return new Student(1,"程序员","北京");
    }
}
